package com.whu.MenuHub.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
public class Food implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("foodName")
    private String foodName;
    private String photo;
    private Double price;

    @TableField("label")
    private String label;

    //食品的综合评分，根据食品的评价信息获取
    @TableField("foodScore")
    private float foodScore;

    //食品的点赞量，根据食品的评价信息获取
    @TableField("foodStar")
    private int foodStar;

    //食品的销量，根据食品的评价信息获取
    @TableField("saleNumber")
    private int saleNumber;

    //食品的评价标签
    private String tag;

}
